#ifndef CWebCounter_h
#define CWebCounter_h

#include "CCodeCounter.h"

class CWebCounter : public CCodeCounter
{
public:
	CWebCounter();

	virtual int CountSLOC(filemap*, results*);
	map<int,SourceFileElement>* GetSeparationMap(){return &Separation;}
	virtual ofstream* getOutputStream(string, string outputFileNamePrePend = "");
	virtual void closeOutputStream();

protected:
	void CleanSeparatedFile();
	void CleanSeparatedLine();

	map<int,SourceFileElement> Separation;
	map<int,lineElement> SeparatedLine;
	map<string,int> TagTable;
	map<string,int> ScriptTable;
	stack<int> PreviousLanguage;

	ofstream php_output_file;
	ofstream html_output_file;
	ofstream jsp_output_file;
	ofstream asp_output_file;
};

#endif
